package com.mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 秒杀活动
 *
 * @author ASUS
 * @date 2021/07/18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbSeckill {
    /**
     *主键
     */
    private Long id;
    /**
     *秒杀名称
     */
    private String name;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    /**
     *创建时间
     */
    private Date createTime;
    /**
     *状态(1-开启, 2-关闭)
     */
    private String status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    /**
     *起始时间
     */
    private Date startTime;
    /**
     *结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    /**
     *预留字段
     */
    private String imagesJson;
    /**
     *
     */
    private String timeFrame;
}